package com.xy.gateway.service.impl;


import java.util.List;
import java.util.Map;
import java.util.Date;
import com.xy.core.util.BeanUtil;
import com.xy.common.page.Pagination;
import com.xy.core.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.xy.gateway.dao.ProviderDao;
import com.xy.gateway.model.Provider;
import com.xy.gateway.service.ProviderService;

@Service
@Transactional
public class ProviderServiceImpl extends BaseServiceImpl<Provider> implements
		ProviderService {
	private ProviderDao providerDao;

	public ProviderServiceImpl(ProviderDao paramAppRoleDao) {
		super(paramAppRoleDao);
		this.providerDao = paramAppRoleDao;
	}

	@Override
	public boolean checkExist(String paraName, String paraValue) {
		return providerDao.checkExist("Provider", paraName, paraValue);
	}

	@Override
	public List<Provider> getProvider(Map<String, Object> map) {
		return providerDao.getProvider(map);
	}
	@Override
	public Pagination getProviderByPage(Map<String, Object> map, int pageNo,
			int pageSize) {
		// TODO Auto-generated method stub
		return providerDao.getProviderByPage(map, pageNo, pageSize);
	}
	 
   @Override
	public Provider save(Provider provider) {return super.save(provider);}
}